export const getNowTime = () => {
    let time = new Date();
    //time目前为 Fri Dec 15 2023 23:29:03 GMT+0800 (China Standard Time)
    let year = time.getFullYear();
    let month = time.getMonth() + 1;
    let day = time.getDate();
    let hour = time.getHours();
    let minute = time.getMinutes();
    let second = time.getSeconds();
    time = `${year}-${month}-${day} ${hour}:${minute}:${second}`;
    console.log('现在时间为:', time);
    // time 现在为 2023-12-15 23:19:50
    return time
}

